package com.stu.mapper;

import com.stu.pojo.ClassJobApplication;
import com.stu.pojo.Notice;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AdminOperateMapper {

    @Update("update scholarship_stu_information set admin_examine = #{result} where id = #{id}")
    void examineScholarship(Integer result, Integer id);

    @Update("update violation_application set admin_examine = #{result},admin_id = #{currentId} where id = #{id}")
    void examineViolation(Integer result, Integer id, Long currentId);

    @Insert("insert into notice(information_class, notice_key, entrydate, title, context) " +
            "values (#{informationClass}, #{noticeKey}, #{entryDate}, #{title}, #{context})")
    void insertNotice(Notice notice);

}
